import Vue from 'vue';
import Router from 'vue-router';

import IdentityRegister from '@/components/IdentityRegister';
import IdentityRegisterUrl from '@/components/IdentityRegisterUrl';
import IdentityRegister1 from '@/components/IdentityRegister1';
import Transaction from '@/components/Transaction';
import Autograph from '@/components/Autograph';
import Message from '@/components/Message';
import Address from '@/components/Address';
import GenerateAddress from '@/components/generateAddress';
import TextEncryption from '@/components/TextEncryption';
import HashCount from '@/components/HashCount';
import PKAuthorization from '@/components/PKAuthorization';
import CoinDays from '@/components/CoinDays';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            name: 'transaction',
            redirect: '/transaction',
        },
        {
            path: '/identityRegister',
            name: 'identityRegister',
            components: {
                main: IdentityRegister
            }
        },
        {
            path: '/IdentityRegisterUrl',
            name: 'IdentityRegisterUrl',
            components: {
                main: IdentityRegisterUrl
            }
        },
        {
            path: '/relationshipDeclaraction',
            name: 'identityRegister1',
            components: {
                main: IdentityRegister1
            }
        },
        {
            path: '/PKAuthorization',
            name: 'PKAuthorization',
            components: {
                main: PKAuthorization
            }
        },
        {
            path: '/CoinDays',
            name: 'CoinDays',
            components: {
                main: CoinDays
            }
        },
        {
            path: '/transaction',
            name: 'transaction',
            components: {
                main: Transaction
            }
        },
        {
            path: '/autograph',
            name: 'autograph',
            components: {
                main: Autograph
            }
        },
        {
            path: '/message',
            name: 'message',
            components: {
                main: Message
            }
        },
        {
            path: '/address',
            name: 'address',
            components: {
                main: Address
            }
        },
        {
            path: '/generateAddress',
            name: 'generateAddress',
            components: {
                main: GenerateAddress
            }
        },
        {
            path: '/textEncryption',
            name: 'textEncryption',
            components: {
                main: TextEncryption
            }
        },
        {
            path: '/hashCount',
            name: 'hashCount',
            components: {
                main: HashCount
            }
        },
    ]
})
